<template>
    <div class="box">
        <div class="dang">
            <img src="../../assets/3333.png" @click="Backs" alt="" class="image">
            <div class="wen">当前问诊</div>
        </div>

        <div class="imgbox">
            <div class="kun">
                <img src="../../assets/医生1.png" alt="" class="img">
            </div>

            <div class="zi">
                <div class="xiao">{{ collect_title }}</div>
                <div class="du">副主任医师</div>
                <div class="er">小儿科</div>
                <div>问诊时间<span class="sj">2018.10.12<span class="js">10:25</span></span></div>
            </div>
        </div>
        <div class="jx">
            <button class="btn" @click="chat_service">继续问诊</button>
        </div>
        <div class="zs">
            <button class="btn1" @click="my">结束问诊</button>
        </div>

    </div>
</template>

<script setup lang="ts">
import { useRouter } from 'vue-router'
const router = useRouter()
const Backs = () => {
    router.go(-1)
}
const collect_title = '曾小贤'
const chat_service = () => {
    router.push('/chat_service')
    localStorage.setItem('collect_title', collect_title)
}

const my = () => {
    router.push('/my')
}

</script>

<style scoped lang="scss">
.btn {
    width: 85px;
    height: 35px; // 70px * 0.5 = 35px
    background: #999;
    border-radius: 5px; // 10px * 0.5 = 5px
    border: none;
    font-size: 13px; // 26px * 0.5 = 13px
}

.btn1 {
    width: 85px; // 170px * 0.5 = 85px
    height: 35px; // 70px * 0.5 = 35px
    background: #999;
    border-radius: 5px; // 10px * 0.5 = 5px
    border: none;
    font-size: 13px; // 26px * 0.5 = 13px
    color: #fff;
    background-color: blue;
}

.jx {
    position: absolute;
    top: 500px; // 1060px * 0.5 = 530px
    left: 60px; // 18% * 0.5 = 9%
}

.zs {
    position: absolute;
    top: 500px; // 1060px * 0.5 = 530px
    left: 230px; // 60% * 0.5 = 30%
}

.js {
    margin-left: 5px; // 10px * 0.5 = 5px
}

.sj {
    margin-left: 12.5px; // 25px * 0.5 = 12.5px
}

.er {
    font-size: 12px; // 24px * 0.5 = 12px
}

.du {
    font-size: 11.5px; // 23px * 0.5 = 11.5px
}

.xiao {
    font-size: 12.5px; // 25px * 0.5 = 12.5px
    font-weight: 600;
}

.zi {
    width: 330px; // 85% * 0.5 = 42.5%
    height: 115px; // 230px * 0.5 = 115px
    border: 2px solid #eee; // 4px * 0.5 = 2px
    margin: 0 auto;
    margin-bottom: 15px; // 30px * 0.5 = 15px
    z-index: 4999; // 9999 * 0.5 = 4999
    border-radius: 7.5px; // 15px * 0.5 = 7.5px
    text-align: center;

    div {
        margin-top: 10px; // 20px * 0.5 = 10px
    }
}

.wen {
    font-size: 15px;
    margin-top: 15px; // 22px * 0.5
    margin-left: 130px;
}

.dang {
    width: 100%;
    height: 50px; // 100px * 0.5 = 50px
    border-bottom: 5px solid #eee; // 10px * 0.5 = 5px
    display: flex;
}

.image {
    width: 15px; // 30px * 0.5 = 15px
    height: 15px; // 30px * 0.5 = 15px
    margin-top: 17.5px; // 35px * 0.5 = 17.5px
    margin-left: 15px; // 30px * 0.5 = 15px
}

.box {
    width: 100%;
    height: 100%;
}

.imgbox {
    width: 100%;
    height: 250px; // 500px * 0.5 = 250px
    margin: 0 auto;
    margin-top: 9%; // 18% * 0.5 = 9%
}

.kun {
    width: 200px; // 50% * 0.5 = 25%
    height: 250px; // 500px * 0.5 = 250px
    margin: 0 auto;
}

.img {
    width: 100%;
    height: 100%;
}
</style>
